package cn.siat.gene.mapper;

import cn.siat.gene.domain.SequenceOperate;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SequenceOperateMapper{
    List<SequenceOperate> list(SequenceOperate item);
    SequenceOperate getLatest(SequenceOperate item);
    SequenceOperate getRollback(SequenceOperate item);
    List<SequenceOperate> listRollback(SequenceOperate item);
    int saveList(List<SequenceOperate> list);
    int save(SequenceOperate item);
    Integer countMaxOrder(Long sequenceId);
    int removeBySequenceIdList(List<Long> list);
    int removeByIdList( @Param("sequenceId") Long sequenceId, @Param("list") List<Long> list);

    SequenceOperate selectById(SequenceOperate item);
    int updateDesignById(SequenceOperate item);

    List<SequenceOperate> getDesignIdsByProgrammeId(String programmeId);
}
